package com.canaan.business.domain.basic;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.canaan.common.annotation.Excel;
import com.canaan.common.annotation.TableName;
import com.canaan.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 库位对象 wms_storehouse_location
 *
 * @author ruoyi
 * @date 2022-11-29
 */
@TableName("wms_storehouse_location")
public class WmsStorehouseLocation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 库位编号 */
    @Excel(name = "库位编号")
    private String no;

    /** 库位名称 */
    @Excel(name = "库位名称")
    private String name;


    /** 库区编号 */
    @Excel(name = "库区编号")
    private String storehouseAreaNo;

    /** 库区名称 */
    @Excel(name = "库区名称", type = Excel.Type.EXPORT)
    private String storehouseAreaName;

    /** 仓库编号 */
    @Excel(name = "仓库编号")
    private String storehouseNo;

    /** 仓库名称 */
    @Excel(name = "仓库名称", type = Excel.Type.EXPORT)
    private String storehouseName;


    /** 工作中心编号 */
//    @Excel(name = "工作中心编号")
    private String workCenterNo;

    /** 工作中心名称 */
//    @Excel(name = "工作中心名称")
    private String workCenterName;

    /** 状态 */
//    @Excel(name = "状态")
    private String status;

    /** 外部编号 */
//    @Excel(name = "外部编号")
    private String outerNo;

    /**
     * agv点位编号
     */
    private String agvPositionCode;

    /** 是否删除：1是 0否 */
    private String delFlag;

    /** 排序 */
//    @Excel(name = "排序")
    private Integer sort;

    /** 是否默认 */
//    @Excel(name = "是否默认")
    private String isDefault;

    /** 库位码前缀 */
//    @Excel(name = "库位码前缀")
    private String prefix;

    /** 备注 */
//    @Excel(name = "备注")
    private String remark;

    /** 创建人名称 */
    @Excel(name = "创建人", type = Excel.Type.EXPORT)
    private String createBy;

    /** 创建时间 */
    @Excel(name = "创建时间", type = Excel.Type.EXPORT, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 最后更新人名称 */
    @Excel(name = "最后更新人", type = Excel.Type.EXPORT)
    private String updateBy;

    /** 更新时间 */
    @Excel(name = "最后更新时间", type = Excel.Type.EXPORT, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private List<String> nos;

    /**
     * 是否分捡
     */
    private String isSplit;
    /**
     * 是否里库
     */
    private String isInner;
    /**
     * 里库关联库位
     */
    private String innerLocation;


    /**
     * 类型(1-存储，2-入库接驳点，3-出库接驳点,4-入库分拣位，5-出库分拣位，6-其他)
     */
    @Excel(name = "库位类型", type = Excel.Type.EXPORT)
    private String locationType;
    /**
     * 行号
     */
    private Integer rows;
    /**
     * 列号
     */
    private Integer Columns;

    /**
     * 层数
     */
    private Integer floors;

    @Override
    public List<String> getNos() {
        return nos;
    }

    @Override
    public void setNos(List<String> nos) {
        this.nos = nos;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setStorehouseNo(String storehouseNo)
    {
        this.storehouseNo = storehouseNo;
    }

    public String getStorehouseNo()
    {
        return storehouseNo;
    }
    public void setStorehouseName(String storehouseName)
    {
        this.storehouseName = storehouseName;
    }

    public String getStorehouseName()
    {
        return storehouseName;
    }
    public void setStorehouseAreaNo(String storehouseAreaNo)
    {
        this.storehouseAreaNo = storehouseAreaNo;
    }

    public String getStorehouseAreaNo()
    {
        return storehouseAreaNo;
    }
    public void setStorehouseAreaName(String storehouseAreaName)
    {
        this.storehouseAreaName = storehouseAreaName;
    }

    public String getStorehouseAreaName()
    {
        return storehouseAreaName;
    }
    public void setNo(String no)
    {
        this.no = no;
    }

    public String getNo()
    {
        return no;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setWorkCenterNo(String workCenterNo)
    {
        this.workCenterNo = workCenterNo;
    }

    public String getWorkCenterNo()
    {
        return workCenterNo;
    }
    public void setWorkCenterName(String workCenterName)
    {
        this.workCenterName = workCenterName;
    }

    public String getWorkCenterName()
    {
        return workCenterName;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setOuterNo(String outerNo)
    {
        this.outerNo = outerNo;
    }

    public String getOuterNo()
    {
        return outerNo;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort()
    {
        return sort;
    }
    public void setIsDefault(String isDefault)
    {
        this.isDefault = isDefault;
    }

    public String getIsDefault()
    {
        return isDefault;
    }
    public void setPrefix(String prefix)
    {
        this.prefix = prefix;
    }

    public String getPrefix()
    {
        return prefix;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String getCreateBy() {
        return createBy;
    }

    @Override
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    @Override
    public String getUpdateBy() {
        return updateBy;
    }

    @Override
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getIsSplit() {
        return isSplit;
    }

    public void setIsSplit(String isSplit) {
        this.isSplit = isSplit;
    }

    public String getIsInner() {
        return isInner;
    }

    public void setIsInner(String isInner) {
        this.isInner = isInner;
    }

    public String getInnerLocation() {
        return innerLocation;
    }

    public void setInnerLocation(String innerLocation) {
        this.innerLocation = innerLocation;
    }

    public String getLocationType() {
        return locationType;
    }

    public void setLocationType(String locationType) {
        this.locationType = locationType;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getColumns() {
        return Columns;
    }

    public void setColumns(Integer columns) {
        Columns = columns;
    }

    public Integer getFloors() {
        return floors;
    }

    public void setFloors(Integer floors) {
        this.floors = floors;
    }


    public String getAgvPositionCode() {
        return agvPositionCode;
    }

    public void setAgvPositionCode(String agvPositionCode) {
        this.agvPositionCode = agvPositionCode;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("storehouseNo", getStorehouseNo())
            .append("storehouseName", getStorehouseName())
            .append("storehouseAreaNo", getStorehouseAreaNo())
            .append("storehouseAreaName", getStorehouseAreaName())
            .append("no", getNo())
            .append("name", getName())
            .append("workCenterNo", getWorkCenterNo())
            .append("workCenterName", getWorkCenterName())
            .append("status", getStatus())
            .append("outerNo", getOuterNo())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("sort", getSort())
            .append("isDefault", getIsDefault())
            .append("prefix", getPrefix())
            .append("isInner", getIsInner())
            .append("isSplit", getIsSplit())
            .append("innerLocation", getInnerLocation())
            .append("locationType",getLocationType())
            .toString();
    }

    private List<Long> ids;

    public List<Long> getIds() {
        return ids;
    }

    public void setIds(List<Long> ids) {
        this.ids = ids;
    }
}
